package com.sanyang.pda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.RandomSamplingBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class RandomSamplingAdapter extends BaseAdapter<RandomSamplingBean> {
    public RandomSamplingAdapter(int layoutResId, @Nullable List<RandomSamplingBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RandomSamplingBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_quality_order,": "+item.getQaNo());
        helper.setText(R.id.tv_delivery_order,": "+item.getEntryNo());
        helper.setText(R.id.tv_goods,": "+item.getArticleName());
        helper.setText(R.id.tv_specification,": "+item.getSpec());
    }
}
